/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-03-26
 * Time: 23:12
 */
public class Demo5 {
    public static void main(String[] args) {
        Thread thread=new Thread(()->{

                System.out.println("hello thread");
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }

        });
        thread.start();
        Thread t=Thread.currentThread();
        System.out.println(t.getName());

    }
}
